<?php
/* @var $this EntryController */
/* @var $model Entry */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

<div class="row">
		<?php echo $form->label($model,'Date Created'); ?>
	<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'date',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
	</div>


	<div class="row">
		<?php echo $form->label($model,'code'); ?>
		<?php echo $form->textField($model,'code',array('size'=>45,'maxlength'=>45)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'client_id'); ?>
		<?php echo $form->textField($model,'client_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'port_id'); ?>
		<?php echo $form->textField($model,'port_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'shipping_line_id'); ?>
		<?php echo $form->textField($model,'shipping_line_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'customs_entry_no'); ?>
		<?php echo $form->textField($model,'customs_entry_no',array('size'=>45,'maxlength'=>45)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'lodge_date'); ?>
	<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array(
        'model'=>$model, 'attribute'=>'lodge_date',
        'options'=>array(
            'dateFormat'=>'yy-mm-dd',
            'yearRange'=>'-20:+20',
            'changeYear'=>'true',
            'changeMonth'=>'true',
        ),
		)); ?>
	</div>

		<div class="row">
		<?php echo $form->labelEx($model,'selectivity'); ?>
		<?php echo $form->dropDownList($model, 'selectivity',$htmlOptions=array
		(
		'Green' =>'Green',
		'Yellow' =>'Yellow',
		'Red' =>'Red',
		'pending' => 'pending'
		),array('prompt' => 'Select One')) ?>

	</div>



	<div class="row">
		<?php echo $form->label($model,'section'); ?>
		<?php echo $form->dropDownList($model, 'selectivity',$htmlOptions=array
		(
		'1' =>'1',
		'2' =>'2',
		'3' =>'3',
		'4' =>'4',
		'5' =>'5',
		'6' =>'6',
		'7' =>'7',
		'8' =>'8',
		'9' =>'9',
		'10' =>'10',
		'11' =>'11',
		'12' =>'12',
		'13' =>'13',
			'14' =>'14',
			'15' =>'15',
		),array('prompt' => 'pending')) ?>
	</div>


	<div class="row">
		<?php echo $form->label($model,'bill_of_lading_no'); ?>
		<?php echo $form->textField($model,'bill_of_lading_no',array('size'=>45,'maxlength'=>45)); ?>
	</div>

	

	<div class="row buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->